import { Column, Entity, Index, PrimaryGeneratedColumn } from "typeorm";

@Index("idx_sort", ["sort"], {})
@Entity("rrz_goods_specification", { schema: "rrzcms" })
export class RrzGoodsSpecification {
  @PrimaryGeneratedColumn({
    type: "bigint",
    name: "spec_id",
    comment: "id",
    unsigned: true,
  })
  specId: string;

  @Column("varchar", {
    name: "spec_name",
    nullable: true,
    comment: "规格名",
    length: 50,
  })
  specName: string | null;

  @Column("smallint", {
    name: "sort",
    comment: "排序顺序",
    unsigned: true,
    default: () => "'0'",
  })
  sort: number;
}
